package com.flute.tools.xml;

import com.flute.tools.xml.xpath.IPathNode;
import com.flute.tools.xml.xpath.LeveledXmlSettings;
import com.flute.tools.xml.xpath.PathParsers;

public class StringXmlValue implements IXmlValue {
	private String value;

	public StringXmlValue() {
	}

	public StringXmlValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public void build(LeveledXmlSettings settings, XmlNode parent,
			String parentKey) {
		IPathNode node = settings.getPathNode(parentKey);
		PathParsers.getInstance().parse(node, value, parent);
	}

}
